package com.zhenwei.zscm.mappings;

import com.zhenwei.zscm.entity.OrderProductEntity;
import com.zhenwei.zscm.model.dto.order.OrderProductDTO;
import com.zhenwei.zscm.model.vo.order.CreateOrderProductVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

@Mapper
public interface OrderProductMapping {
    OrderProductMapping INSTANCE = Mappers.getMapper(OrderProductMapping.class);

    OrderProductEntity vo2Entity(CreateOrderProductVO vo);
    OrderProductDTO entity2Dto(OrderProductEntity entity);

    OrderProductEntity dto2Entity(OrderProductDTO orderProductDTO);
}
